package cn.kgc.ssm.service;

import cn.kgc.ssm.dao.AirMapper;
import cn.kgc.ssm.pojo.AirQuality;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 许京东
 * @Description
 * @date 2021/5/25 12:43
 */
@Service
public class AirServiceImpl implements AirService {
    @Autowired
    AirMapper airMapper;
    @Override
    public List<AirQuality> getAllAirInfo(Integer districtId) {
        return airMapper.getAllAirInfo(districtId);
    }

    @Override
    public Integer addAirInfo(AirQuality airQuality) {
        return airMapper.addAirInfo(airQuality);
    }

    @Override
    public Integer updateAirInfo(AirQuality airQuality) {
        return airMapper.updateAirInfo(airQuality);
    }

    @Override
    public Integer deleteAirInfo(Integer id) {
        return airMapper.deleteAirInfo(id);
    }
}
